<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>
        // 构造函数
        function Person(){
            this.eat("零食");
        }
        Person.prototype.eat=function(something){
            console.log("我想吃",something);
        }
        let p=new Person();
        // 每个实例对象 都有一个 __proto__ => 父类构造函数中的原型
// 参考： https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/Objects/Object_prototypes
        console.log(Person.__proto__);// ƒ () { [native code] }
        console.log(p.__proto__);// Person.prototype
        console.log(p.__proto__.__proto__);// Object
        console.log(p.__proto__.__proto__.__proto__);// null











    </script>


</body>
</html>